<template>
  <div class="banner">
    <agile :autoplay="false">
      <div class="slide slide--1"></div>
      <div class="slide slide--2"></div>
      <div class="slide slide--3"></div>
    </agile>
  </div>
</template>

<script>
import Vue from "vue";
import VueAgile from "vue-agile";
Vue.use(VueAgile);

export default {
  components: {},
  methods: {}
};
</script>

<style lang="scss">
.banner {
  .agile {
    &__dots {
      bottom: 0;
      left: 50%;
      position: absolute;
      transform: translateX(-50%);
      margin: 20px 0;
    }

    &__dot {
      button {
        background-color: transparent;
        border: 1px solid #fff;

        &:hover {
          background-color: #fff;
        }
      }

      &--current {
        button {
          background-color: #fff;
        }
      }
    }

    .agile__dot {
      margin: 0 10px;
      button {
        border-radius: 50%;
        cursor: pointer;
        display: block;
        height: 10px;
        font-size: 0;
        line-height: 0;
        margin: 0;
        transition-duration: 0.3s;
        width: 10px;
        padding: 0;
      }
    }

    &__arrow {
      height: 100%;
      top: 0;
      width: 80px;

      &:hover {
        background-color: rgba(#000, 0.5);

        #arrow-svg {
          fill: #fff;
        }
      }

      &[disabled] {
        display: none;
      }

      #arrow-svg {
        fill: rgba(#fff, 0.6);
        height: 25px;
      }
    }
  }
  .agile__arrow {
    border: none;
    bottom: 10px;
    margin: 0;
    padding: 0;
    position: absolute;
    transition-duration: 0.3s;
    background-color: transparent;

    svg {
      height: 25px;
      fill: hsla(0, 0%, 100%, 0.6);
      transition-duration: 0.3s;
    }
  }

  .agile__arrow--prev {
    left: 0;
  }

  .agile__arrow--next {
    right: 0;
  }

  .slide {
    background: {
      position: center;
      size: cover;
    }
    height: 500px;

    &:before {
      background-color: rgba(#000, 0.2);
      content: "";
      height: 100%;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
    }

    &--1 {
      background-image: url(../../assets/images/bg-1.jpg);
    }

    &--2 {
      background-image: url(../../assets/images/bg-2.jpg);
    }

    &--3 {
      background-image: url(../../assets/images/bg-3.jpg);
    }
  }
}
</style>